/** 获取企业信息 */
export default async function companyInfoSv(req: any) {
  try {
    let data = await req.api.v4.get({
      action: 'corp.info.get',
      sessionKey: req.t,
      companyId: req.companyId
    })
    if (!data.status) {
      throw new M.errors.TipsError(data.msg)
    }
    return data.data.company
  } catch (e) {
    return Promise.reject(e)
  }
}